﻿using System;

class ValueOfThirdBit
{
    static void Main()
    {
        int number;

        Console.WriteLine("Type number:");
        bool isParseSuccess = int.TryParse(Console.ReadLine(), out number);
        int thirdBitValue;

        if (isParseSuccess)
        {
            thirdBitValue = (number >> 3) % 2;

            Console.WriteLine("The value of the third bit is {0}!", thirdBitValue);
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}